package com.snake.repositories;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.snake.mapper.ActivityCardMapper;
import com.snake.mapper.ActivityWinRuleMapper;
import com.snake.models.ActivityCard;
import com.snake.models.ActivityWinRule;
import com.snake.util.DateUtil;


@Service
public class ActivityWinRuleServiceImpl implements ActivityWinRuleService {
	@Autowired
	private ActivityWinRuleMapper activityWinRuleMapper;
	@Override
	public ActivityWinRule add(ActivityWinRule t) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public ActivityWinRule delete(ActivityWinRule t) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public ActivityWinRule update(ActivityWinRule t) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public ActivityWinRule getById(int id) {
		// TODO Auto-generated method stub
		Map<String, Object> params=new HashMap<String, Object>();
		params.put("WinRuleId", id);
		ActivityWinRule byId = activityWinRuleMapper.getById(params);
		return byId;
	}

	@Override
	public List<ActivityWinRule> getByList(Map<String, Object> params) {
		// TODO Auto-generated method stub
		List<ActivityWinRule> byList = activityWinRuleMapper.getByList(params);
		return byList;
	}
	
}
